package at.jku.se.fastsell.data;

import java.io.Serializable;
import java.util.Date;

public class Item implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5074661733047424673L;
	private String title;
	private String description;
	private String seller;
	private double currentPrice;
	private Date end;
	
	public Item(String name, String description, double currentPrice, Date endDate){
		this.title = name;
		this.description = description;
		this.currentPrice = currentPrice;
		this.end = endDate;
	}
	
	public Item(String name, String description, double currentPrice, Date endDate, String seller){
		this.title = name;
		this.description = description;
		this.currentPrice = currentPrice;
		this.end = endDate;
		this.seller = seller;
	}
	
	public Item(String name, String description, double currentPrice){
		this.title = name;
		this.description = description;
		this.currentPrice = currentPrice;
	}
	
	/**
	 * @return the name
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param name the name to set
	 */
	public void setTitle(String name) {
		this.title = name;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the currentPrice
	 */
	public double getCurrentPrice() {
		return currentPrice;
	}
	/**
	 * @param currentPrice the currentPrice to set
	 */
	public void setCurrentPrice(double currentPrice) {
		this.currentPrice = currentPrice;
	}
	public String getSeller() {
		return seller;
	}

	public void setSeller(String seller) {
		this.seller = seller;
	}

	/**
	 * @return the endDate
	 */
	public Date getEnd() {
		return end;
	}
	/**
	 * @param endDate the endDate to set
	 */
	public void setEnd(Date endDate) {
		this.end = endDate;
	}
	
	
}
